#include <REGX51.H>
#include "delay.h"
#include "display.h"
#include "millis.h"
#include "keypad.h"


void main()
{
	Timer1_Init();
	displayClose();
	while (1)
	{
		unsigned char i,j;
		scanKeys();

		for(i=0; i<3; i++)
		{
			for(j=0; j<4; j++)
			{
				if(bitRead(bitMap[i],j)) 
				{
					P1_0 = 0;
					displayNumberLength(i*4+j, 2);
				}
				else
				{
					P1_0 = 1;
				}
			}
		}
	}
}



